package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.BusinessLogPO;
import com.hyzx.qbasic.admin.model.po.ErrorLogPO;
import com.hyzx.qbasic.admin.model.po.UserLoginLogPO;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetBusinessLogListReq;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetErrorLogListReq;

/**
 * Created by 黄江华 on 2017/9/22
 */

public interface ILogRepository {

    boolean addUserLoginLog(UserLoginLogPO logInfo);

    boolean addBusinessLog(BusinessLogPO logInfo);

    PageInfo<BusinessLogPO> getBusinessLogList(GetBusinessLogListReq req);

    boolean addErrorLog(ErrorLogPO logInfo);

    PageInfo<ErrorLogPO> getErrorLogList(GetErrorLogListReq req);

    ErrorLogPO getErrorLogDetail(int logId);
}
